import { ref } from "vue";

import {
  Process,
  Equipment,
  EmissionFactor,
  Supplier,
  Product,
  Material,
  ProductTree,
  Allocation,
  FlowChart,
  ProcessNode,
  User,
  Project,
  MPpair,
  PCFrequest,
  EnergyAllocation,
  PurposeScope,
  SelfMadeEmission,
  AssemblyProcess
} from "@/api/interface";

export const userList = ref<Partial<User.ResUser>[]>([
  {
    id: "1",
    userName: "admin",
    password: "123456",
    companyID: "1"
  },
  {
    id: "2",
    userName: "user",
    password: "123456",
    companyID: "6"
  }
]);
export const processList = ref<Partial<Process.ResProcess>[]>([
  {
    id: "1",
    processId: "GX001",
    processName: "焊接",
    equipmentId: "2", // 焊接机
    description: "该工序使用自动化焊接设备进行金属部件的焊接，保证焊接接头的高强度与稳定性，适用于高要求的结构件。",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "2",
    processId: "GX002",
    processName: "喷涂",
    equipmentId: "3", // 涂装设备
    description: "该工序使用自动化喷涂设备对工件表面进行涂层处理，提高产品的防腐蚀性能和外观质量，确保涂层均匀和附着力。",
    createTime: "2023-12-02 11:30:00"
  },
  {
    id: "3",
    processId: "GX003",
    processName: "激光",
    equipmentId: "5", // 激光切割机
    description: "此工序利用高精度激光切割机进行金属材料的精密切割，确保切割边缘平滑且无毛刺，适用于复杂形状和精细加工。",
    createTime: "2023-12-03 14:00:00"
  },
  {
    id: "4",
    processId: "GX004",
    processName: "低压",
    equipmentId: "4", // 数控机床
    description: "低压加工工序用于控制设备内的电流和电压，确保设备在低压环境下稳定运行，避免过载现象，常用于电气部件的安全测试。",
    createTime: "2023-12-04 09:00:00"
  },
  {
    id: "5",
    processId: "GX005",
    processName: "弯曲",
    equipmentId: "1", // 冲孔机（也可用于弯曲）
    description:
      "金属弯曲成型工序通过液压机和模具对金属材料进行弯曲，确保产品达到所需的角度和尺寸，适用于钢板、铝合金等金属材料的成型。",
    createTime: "2023-12-05 16:00:00"
  },
  {
    id: "6",
    processId: "GX006",
    processName: "备料",
    equipmentId: "1", // 冲孔机
    description: "备料工序包括原材料的检验、切割、整理和分配，确保每个工序使用的材料符合规格要求，且按时供应到生产线。",
    createTime: "2023-12-06 10:00:00"
  },
  {
    id: "7",
    processId: "GX007",
    processName: "塔冲",
    equipmentId: "1", // 冲孔机
    description:
      "塔式冲压工序使用冲压机对金属板材进行成型，适用于高效批量生产，确保零件形状的准确性和一致性，广泛应用于汽车、家电等行业。",
    createTime: "2023-12-07 11:00:00"
  },
  {
    id: "8",
    processId: "GX008",
    processName: "装配",
    equipmentId: "4", // 数控机床
    description: "在装配工序中，各种机械部件按图纸要求进行组装，确保零部件的精准配合和功能正常，使用自动化装配线以提高生产效率。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "9",
    processId: "GX009",
    processName: "油箱制作",
    equipmentId: "1", // 冲孔机
    description: "油箱制作工序包括金属板材的冲压和焊接，通过精确的工艺确保油箱的密封性和结构强度，广泛应用于汽车、航空等行业。",
    createTime: "2023-12-09 11:00:00"
  },
  {
    id: "10",
    processId: "GX010",
    processName: "铁芯制作",
    equipmentId: "1", // 冲孔机
    description: "铁芯制作工序通过冲压和切割工艺将金属材料加工成所需形状，确保铁芯的磁性性能，广泛应用于电机、变压器等设备。",
    createTime: "2023-12-10 11:00:00"
  },
  {
    id: "11",
    processId: "GX011",
    processName: "线圈制作",
    equipmentId: "4", // 数控机床
    description: "线圈制作工序包括绕制和绝缘处理，确保线圈的电气性能和机械强度，广泛应用于变压器、电机等行业。",
    createTime: "2023-12-11 11:00:00"
  },
  {
    id: "12",
    processId: "GX012",
    processName: "引线装配",
    equipmentId: "2", // 焊接机
    description: "引线制作工序通过精密的焊接技术将导线连接到元件上，确保电流传导的稳定性和安全性，常用于电子元件的组装中。",
    createTime: "2023-12-12 11:00:00"
  },
  {
    id: "13",
    processId: "GX013",
    processName: "器身装配",
    equipmentId: "4", // 数控机床
    description: "器身装配工序通过精密的机械装配技术，将各个部件组装成完整的器身，确保结构的稳定性和功能的正常运作。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "14",
    processId: "GX014",
    processName: "气箱干燥",
    equipmentId: "3", // 涂装设备
    description: "气箱干燥工序通过热风循环和抽真空技术，去除气箱内的水分，确保气箱的密封性和使用寿命。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "15",
    processId: "GX015",
    processName: "器身压服",
    equipmentId: "1", // 冲孔机
    description: "器身压服工序通过高压设备对器身进行成型，确保器身的强度和形状符合设计要求。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "16",
    processId: "GX016",
    processName: "总装配",
    equipmentId: "4", // 数控机床
    description: "总装配工序将所有部件进行最终组装，确保各个部件的配合精度和整体功能的正常运作。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "17",
    processId: "GX017",
    processName: "真空注油",
    equipmentId: "3", // 涂装设备
    description: "真空注油工序通过真空技术将润滑油注入设备内部，确保设备的正常运转和延长使用寿命。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "18",
    processId: "GX018",
    processName: "出厂试验",
    equipmentId: "4", // 数控机床
    description: "出厂试验工序对组装完成的设备进行全面测试，确保其性能和安全性符合出厂标准。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "19",
    processId: "GX019",
    processName: "入库",
    equipmentId: "4", // 数控机床
    description: "将产品入库。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "20",
    processId: "GX020",
    processName: "生产配套",
    equipmentId: "4", // 数控机床
    description: "生产配套工序为设备生产提供必要的配件和材料，确保生产线的顺利运作。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "21",
    processId: "GX021",
    processName: "生产公共能耗",
    equipmentId: "4", // 数控机床
    description: "生产公共能耗工序监测和管理生产过程中所需的公共能源，确保生产效率和资源的合理利用。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "22",
    processId: "GX022",
    processName: "组装",
    equipmentId: "4", // 数控机床
    description: "将各个零部件按照设计要求进行组装，确保产品功能完整性和可靠性。",
    createTime: "2023-12-08 11:00:00"
  },
  {
    id: "23",
    processId: "GX023",
    processName: "检测",
    equipmentId: "4", // 数控机床
    description: "对组装完成的产品进行全面检测，确保产品质量符合标准要求。",
    createTime: "2023-12-08 11:00:00"
  }
]);

// 设备管理模块
export const equipmentList = ref<Partial<Equipment.ResEquipment>[]>([
  {
    id: "1",
    equipmentId: "EQ001",
    equipmentName: "冲孔机",
    ratedPower: 25,
    functionDescription: "冲孔机用于将原材料安装好后，在动力机驱动下完成冲孔的一种机械设备。",
    safetyInstructions:
      "在操作前，确保设备所有部件处于正常状态，检查冲孔机的电气系统、液压系统、气动系统是否工作正常，确保所有防护装置完好无损。",
    createTime: "2023-12-01 09:00:00"
  },
  {
    id: "2",
    equipmentId: "EQ002",
    equipmentName: "焊接机",
    ratedPower: 50,
    functionDescription: "焊接机器人主要用于金属焊接工序，提升焊接效率和焊接精度。",
    safetyInstructions: "在操作前，确保焊接电流、电压设置正确，检查防护罩和焊接头是否完好无损。",
    createTime: "2023-12-02 10:30:00"
  },
  {
    id: "3",
    equipmentId: "EQ003",
    equipmentName: "涂装设备",
    ratedPower: 35,
    functionDescription: "涂装设备用于对零件表面进行喷涂处理，提高零件的抗腐蚀能力和美观性。",
    safetyInstructions: "在操作前，确保涂料符合工艺要求，检查喷枪、涂料输送系统是否工作正常，确保防护措施到位。",
    createTime: "2023-12-03 14:00:00"
  },
  {
    id: "4",
    equipmentId: "EQ004",
    equipmentName: "数控机床",
    ratedPower: 60,
    functionDescription: "数控机床用于精密加工零件，具有高精度、高效率的特点。",
    safetyInstructions: "操作前检查刀具和工件是否安装牢固，启动前确保润滑系统和冷却系统正常工作。",
    createTime: "2023-12-04 15:45:00"
  },
  {
    id: "5",
    equipmentId: "EQ005",
    equipmentName: "激光切割机",
    ratedPower: 100,
    functionDescription: "激光切割机用于高精度金属切割工序，广泛应用于汽车、航空等领域。",
    safetyInstructions: "确保激光器及光路系统无异常，佩戴防护眼镜，避免直接接触激光束。",
    createTime: "2023-12-05 16:00:00"
  }
]);

// 碳排因子
export const emissionFactorList = ref<Partial<EmissionFactor.ResEmissionFactor>[]>([
  {
    id: "1",
    factorId: "EF001",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.558,
    region: 1,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022",
    createTime: "2023-12-01 09:00:00"
  }, // 北京
  {
    id: "2",
    factorId: "EF002",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.7041,
    region: 2,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 天津
  {
    id: "3",
    factorId: "EF003",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.7252,
    region: 3,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 河北
  {
    id: "4",
    factorId: "EF004",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.7096,
    region: 4,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 山西
  {
    id: "5",
    factorId: "EF005",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.6849,
    region: 5,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 内蒙古
  {
    id: "6",
    factorId: "EF006",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.5626,
    region: 6,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 辽宁
  {
    id: "7",
    factorId: "EF007",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.4932,
    region: 7,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 吉林
  {
    id: "8",
    factorId: "EF008",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.5368,
    region: 8,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 黑龙江
  {
    id: "9",
    factorId: "EF009",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.5849,
    region: 9,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 上海
  {
    id: "10",
    factorId: "EF010",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.5978,
    region: 10,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 江苏
  {
    id: "11",
    factorId: "EF011",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.5153,
    region: 11,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 浙江
  {
    id: "12",
    factorId: "EF012",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.6782,
    region: 12,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 安徽
  {
    id: "13",
    factorId: "EF013",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.4092,
    region: 13,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 福建
  {
    id: "14",
    factorId: "EF014",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.5752,
    region: 14,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 江西
  {
    id: "15",
    factorId: "EF015",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.641,
    region: 15,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 山东
  {
    id: "16",
    factorId: "EF016",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.6058,
    region: 16,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 河南
  {
    id: "17",
    factorId: "EF017",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.4364,
    region: 17,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 湖北
  {
    id: "18",
    factorId: "EF018",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.49,
    region: 18,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 湖南
  {
    id: "19",
    factorId: "EF019",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.4403,
    region: 19,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 广东
  {
    id: "20",
    factorId: "EF020",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.4044,
    region: 20,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 广西
  {
    id: "21",
    factorId: "EF021",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.4184,
    region: 21,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 海南
  {
    id: "22",
    factorId: "EF022",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.5227,
    region: 22,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 重庆
  {
    id: "23",
    factorId: "EF023",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.1404,
    region: 23,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 四川
  {
    id: "24",
    factorId: "EF024",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.4989,
    region: 24,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 贵州
  {
    id: "25",
    factorId: "EF025",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.1073,
    region: 25,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 云南
  {
    id: "26",
    factorId: "EF026",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.6558,
    region: 26,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 陕西
  {
    id: "27",
    factorId: "EF027",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.4772,
    region: 27,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 甘肃
  {
    id: "28",
    factorId: "EF028",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.1567,
    region: 28,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 青海
  {
    id: "29",
    factorId: "EF029",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.6423,
    region: 29,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 宁夏
  {
    id: "30",
    factorId: "EF030",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.6231,
    region: 30,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 新疆
  {
    id: "31",
    factorId: "EF031",
    factorLabel: "电力",
    factorName: 1,
    factorValue: 0.5856,
    region: 32,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  }, // 全国
  {
    id: "32",
    factorId: "EF032",
    factorLabel: "化石能源电力",
    factorName: 1,
    factorValue: 0.8325,
    region: 32,
    factorUnit: 1,
    source: "关于发布2022年电力二氧化碳排放因子的公告",
    dataYear: "2022", // 添加数据时间
    createTime: "2023-12-01 09:00:00"
  },

  //乱写的↓
  {
    id: "33",
    factorId: "EF033",
    factorLabel: "柴油",
    factorName: 4, //柴油
    factorValue: 0.6369,
    region: 6,
    factorUnit: 3,
    source: "中国产品全生命周期温室气体排放系数库（CPCD）",
    createTime: "2023-12-01 09:00:00"
  },
  {
    id: "34",
    factorId: "EF034",
    factorLabel: "水能",
    factorName: 2, //水能
    factorValue: 0.5992,
    region: 6,
    factorUnit: 2,
    source: "文献数据：国家能源研究院2023年度报告",
    createTime: "2023-12-02 10:30:00"
  },
  {
    id: "35",
    factorId: "EF035",
    factorLabel: "天然气",
    factorName: 3, //天然气
    factorValue: 2.146,
    region: 3,
    factorUnit: 5,
    source: "第三方机构提供：《中国燃气排放因子研究2021》",
    createTime: "2023-12-03 14:00:00"
  },
  {
    id: "36",
    factorId: "EF036",
    factorLabel: "柴油",
    factorName: 4, //柴油
    factorValue: 2.86,
    region: 4,
    factorUnit: 2,
    source: "《国家煤炭碳排放研究报告2022》",
    createTime: "2023-12-04 15:45:00"
  },
  {
    id: "37",
    factorId: "EF037",
    factorLabel: "天然气",
    factorName: 3, //天然气
    factorValue: 2.16,
    region: 3,
    factorUnit: 5,
    source: "第三方机构提供：《中国燃气排放因子研究2023》",
    createTime: "2023-12-03 14:00:00"
  },
  {
    id: "38",
    factorId: "EF038",
    factorLabel: "燃煤发电",
    factorName: 1, //电能
    factorValue: 0.93,
    region: 5,
    factorUnit: 1,
    source: "生态环境部. 2019-2020年全国碳排放权交易配额总量设定与分配实施方案（发电行业）",
    createTime: "2023-12-03 14:00:00"
  },
  {
    id: "39",
    factorId: "EF039",
    factorLabel: "燃气发电",
    factorName: 1, //电能
    factorValue: 0.39,
    region: 5,
    factorUnit: 1,
    source: "生态环境部. 2019-2020年全国碳排放权交易配额总量设定与分配实施方案（发电行业）",
    createTime: "2023-12-03 14:00:00"
  },
  {
    id: "40",
    factorId: "EF040",
    factorLabel: "垃圾发电",
    factorName: 1, //电能
    factorValue: 0.92,
    region: 5,
    factorUnit: 1,
    source: "生态环境部. 2019-2020年全国碳排放权交易配额总量设定与分配实施方案（发电行业）",
    createTime: "2023-12-03 14:00:00"
  },
  {
    id: "41",
    factorId: "EF041",
    factorLabel: "中国2020年电网平均二氧化碳排放",
    factorName: 1, //电能
    factorValue: 0.53,
    region: 6,
    factorUnit: 1,
    source: "生态环境部. 2019-2020年全国碳排放权交易配额总量设定与分配实施方案（发电行业）",
    createTime: "2023-12-03 14:00:00"
  },
  {
    id: "42",
    factorId: "EF042",
    factorLabel: "麻枫树生物柴油",
    factorName: 4, //柴油
    factorValue: 1.184,
    region: 6,
    factorUnit: 3,
    source: "中国产品全生命周期温室气体排放系数库（CPCD）",
    createTime: "2023-12-01 09:00:00"
  },
  {
    id: "43",
    factorId: "EF043",
    factorLabel: "天然气",
    factorName: 3, //天然气
    factorValue: 2.017,
    region: 6,
    factorUnit: 5,
    source: "中国产品全生命周期温室气体排放系数库（CPCD）",
    createTime: "2023-12-01 09:00:00"
  },
  // 添加更多水能碳排因子数据
  {
    id: "44",
    factorId: "EF044",
    factorLabel: "四川水电排放因子",
    factorName: 2, // 水能
    factorValue: 0.0127,
    region: 23, // 四川
    factorUnit: 2, // kgCO₂eq/kWh
    source: "中国水力发电工程学会《水电碳排放计算指南》",
    dataYear: "2022",
    createTime: "2023-08-05 14:30:00"
  },
  {
    id: "45",
    factorId: "EF045",
    factorLabel: "云南梯级水电站",
    factorName: 2, // 水能
    factorValue: 0.0084,
    region: 25, // 云南
    factorUnit: 2, // kgCO₂eq/kWh
    source: "国家发改委能源研究所《中国水电项目碳排放评价报告》",
    dataYear: "2021",
    createTime: "2022-11-12 09:15:00"
  },
  {
    id: "46",
    factorId: "EF046",
    factorLabel: "三峡水电排放因子",
    factorName: 2, // 水能
    factorValue: 0.0152,
    region: 17, // 湖北
    factorUnit: 2, // kgCO₂eq/kWh
    source: "三峡集团环境科学研究院《大型水电站生命周期碳排放分析》",
    dataYear: "2020",
    createTime: "2021-06-18 15:45:00"
  },
  {
    id: "47",
    factorId: "EF047",
    factorLabel: "黄河水电排放因子",
    factorName: 2, // 水能
    factorValue: 0.0176,
    region: 27, // 甘肃
    factorUnit: 2, // kgCO₂eq/kWh
    source: "中国电建集团水电规划设计研究院",
    dataYear: "2021",
    createTime: "2022-03-21 11:20:00"
  },
  {
    id: "48",
    factorId: "EF048",
    factorLabel: "小型山区水电站",
    factorName: 2, // 水能
    factorValue: 0.0245,
    region: 14, // 江西
    factorUnit: 2, // kgCO₂eq/kWh
    source: "水利部水利水电规划设计总院《小型水电站环境影响评价指南》",
    dataYear: "2019",
    createTime: "2020-09-14 16:30:00"
  },
  {
    id: "49",
    factorId: "EF049",
    factorLabel: "抽水蓄能电站排放因子",
    factorName: 2, // 水能
    factorValue: 0.0321,
    region: 11, // 浙江
    factorUnit: 2, // kgCO₂eq/kWh
    source: "华东电力设计院《抽水蓄能电站全生命周期评价方法研究》",
    dataYear: "2022",
    createTime: "2023-04-25 10:40:00"
  },
  {
    id: "50",
    factorId: "EF050",
    factorLabel: "西藏高海拔水电站",
    factorName: 2, // 水能
    factorValue: 0.0083,
    region: 31, // 西藏
    factorUnit: 2, // kgCO₂eq/kWh
    source: "中国科学院青藏高原研究所《高海拔地区水电碳足迹研究》",
    dataYear: "2020",
    createTime: "2021-12-02 09:45:00"
  },
  {
    id: "51",
    factorId: "EF051",
    factorLabel: "雅砻江水电排放因子",
    factorName: 2, // 水能
    factorValue: 0.0112,
    region: 23, // 四川
    factorUnit: 2, // kgCO₂eq/kWh
    source: "清华大学能源环境经济研究所《雅砻江水电工程碳中和路径研究》",
    dataYear: "2021",
    createTime: "2022-07-19 13:25:00"
  },
  {
    id: "52",
    factorId: "EF052",
    factorLabel: "广东抽水蓄能电站",
    factorName: 2, // 水能
    factorValue: 0.0284,
    region: 19, // 广东
    factorUnit: 2, // kgCO₂eq/kWh
    source: "南方电网电力科学研究院《广东电网碳排放因子测算报告》",
    dataYear: "2022",
    createTime: "2023-01-30 14:15:00"
  },
  {
    id: "53",
    factorId: "EF053",
    factorLabel: "北方地区中型水电",
    factorName: 2, // 水能
    factorValue: 0.0198,
    region: 4, // 山西
    factorUnit: 2, // kgCO₂eq/kWh
    source: "北京大学环境科学与工程学院《北方水资源受限地区水电环境评价》",
    dataYear: "2020",
    createTime: "2021-05-16 11:10:00"
  },
  {
    id: "54",
    factorId: "EF054",
    factorLabel: "大渡河水电排放因子",
    factorName: 2, // 水能
    factorValue: 0.0133,
    region: 23, // 四川
    factorUnit: 2, // kgCO₂eq/kWh
    source: "中国水电工程顾问集团《大渡河流域水电开发碳足迹研究》",
    dataYear: "2021",
    createTime: "2022-06-08 16:50:00"
  },
  {
    id: "55",
    factorId: "EF055",
    factorLabel: "国际水电协会标准水电因子",
    factorName: 2, // 水能
    factorValue: 0.0186,
    region: 32, // 全国
    factorUnit: 2, // kgCO₂eq/kWh
    source: "国际水电协会(IHA)《水电碳排放测量指南》中国实施版",
    dataYear: "2023",
    createTime: "2023-09-11 10:30:00"
  },
  {
    id: "56",
    factorId: "EF056",
    factorLabel: "北京管道天然气",
    factorName: 3, // 天然气
    factorValue: 2.102,
    region: 1, // 北京
    factorUnit: 5, // 统一使用5
    source: "国家气候变化战略研究和国际合作中心《城市能源消费碳排放因子手册》",
    dataYear: "2022",
    createTime: "2023-08-15 09:30:00"
  },
  {
    id: "57",
    factorId: "EF057",
    factorLabel: "广东液化天然气",
    factorName: 3, // 天然气
    factorValue: 2.184,
    region: 19, // 广东
    factorUnit: 5,
    source: "中国石油天然气股份有限公司《2022年天然气产业碳足迹报告》",
    dataYear: "2022",
    createTime: "2023-07-21 14:20:00"
  },
  {
    id: "58",
    factorId: "EF058",
    factorLabel: "四川页岩气",
    factorName: 3, // 天然气
    factorValue: 1.986,
    region: 23, // 四川
    factorUnit: 5,
    source: "中国石化集团西南石油局《四川盆地页岩气开发碳排放研究》",
    dataYear: "2021",
    createTime: "2022-11-08 16:45:00"
  },
  {
    id: "59",
    factorId: "EF059",
    factorLabel: "新疆煤制天然气",
    factorName: 3, // 天然气
    factorValue: 2.578,
    region: 30, // 新疆
    factorUnit: 5,
    source: "中国科学院新疆生态与地理研究所《煤制天然气全生命周期评价报告》",
    dataYear: "2020",
    createTime: "2021-06-12 10:30:00"
  },
  {
    id: "60",
    factorId: "EF060",
    factorLabel: "上海城市燃气",
    factorName: 3, // 天然气
    factorValue: 2.134,
    region: 9, // 上海
    factorUnit: 5,
    source: "上海市生态环境局《上海市能源消费碳排放核算指南》",
    dataYear: "2023",
    createTime: "2024-01-15 11:20:00"
  },
  {
    id: "61",
    factorId: "EF061",
    factorLabel: "陕西煤层气",
    factorName: 3, // 天然气
    factorValue: 2.016,
    region: 26, // 陕西
    factorUnit: 5,
    source: "中国矿业大学(北京)《煤层气开发利用碳减排效益评估报告》",
    dataYear: "2021",
    createTime: "2022-03-28 09:15:00"
  },
  {
    id: "62",
    factorId: "EF062",
    factorLabel: "海南LNG终端天然气",
    factorName: 3, // 天然气
    factorValue: 2.216,
    region: 21, // 海南
    factorUnit: 5,
    source: "中国海洋石油集团有限公司《LNG接收站碳排放测算方法》",
    dataYear: "2022",
    createTime: "2023-05-19 16:40:00"
  },
  {
    id: "63",
    factorId: "EF063",
    factorLabel: "云南工业用天然气",
    factorName: 3, // 天然气
    factorValue: 2.152,
    region: 25, // 云南
    factorUnit: 5,
    source: "云南省工业和信息化厅《工业能源结构调整碳减排报告》",
    dataYear: "2020",
    createTime: "2021-09-22 13:50:00"
  },
  {
    id: "64",
    factorId: "EF064",
    factorLabel: "山东天然气发电",
    factorName: 3, // 天然气
    factorValue: 2.054,
    region: 15, // 山东
    factorUnit: 5,
    source: "山东省能源研究院《天然气发电碳排放分析与对策研究》",
    dataYear: "2023",
    createTime: "2023-12-10 08:25:00"
  },
  {
    id: "65",
    factorId: "EF065",
    factorLabel: "重庆页岩气管网供应",
    factorName: 3, // 天然气
    factorValue: 1.993,
    region: 22, // 重庆
    factorUnit: 5,
    source: "中国地质调查局油气资源调查中心《页岩气开发利用碳足迹研究》",
    dataYear: "2022",
    createTime: "2023-10-05 14:15:00"
  },
  {
    id: "66",
    factorId: "EF066",
    factorLabel: "俄罗斯进口天然气",
    factorName: 3, // 天然气
    factorValue: 2.246,
    region: 8, // 黑龙江
    factorUnit: 5,
    source: "中俄能源合作研究中心《跨境天然气贸易碳足迹评价》",
    dataYear: "2021",
    createTime: "2022-08-17 11:30:00"
  },
  {
    id: "67",
    factorId: "EF067",
    factorLabel: "天津港LNG",
    factorName: 3, // 天然气
    factorValue: 2.203,
    region: 2, // 天津
    factorUnit: 5,
    source: "天津市应对气候变化研究中心《液化天然气全生命周期碳排放研究》",
    dataYear: "2022",
    createTime: "2023-04-12 10:05:00"
  },
  {
    id: "68",
    factorId: "EF068",
    factorLabel: "浙江沿海LNG",
    factorName: 3, // 天然气
    factorValue: 2.192,
    region: 11, // 浙江
    factorUnit: 5,
    source: "浙江省能源集团《浙江能源低碳转型发展报告》",
    dataYear: "2023",
    createTime: "2024-02-25 15:10:00"
  },
  {
    id: "69",
    factorId: "EF069",
    factorLabel: "全国平均天然气",
    factorName: 3, // 天然气
    factorValue: 2.165,
    region: 32, // 全国
    factorUnit: 5,
    source: "国家发改委能源研究所《中国能源统计年鉴碳排放因子数据集》",
    dataYear: "2022",
    createTime: "2023-11-30 09:40:00"
  },
  {
    id: "70",
    factorId: "EF070",
    factorLabel: "湖南城市供气",
    factorName: 3, // 天然气
    factorValue: 2.138,
    region: 18, // 湖南
    factorUnit: 5,
    source: "湖南省生态环境厅《湖南省温室气体排放核算与报告指南》",
    dataYear: "2021",
    createTime: "2022-06-08 14:25:00"
  },
  // 柴油碳排放因子数据
  {
    id: "71",
    factorId: "EF071",
    factorLabel: "华北普通柴油",
    factorName: 4, // 柴油
    factorValue: 0.6152,
    region: 3, // 河北
    factorUnit: 3, // 统一为3
    source: "生态环境部气候司《中国石油化工企业温室气体排放核算方法与报告指南》",
    dataYear: "2022",
    createTime: "2023-09-15 10:30:00"
  },
  {
    id: "72",
    factorId: "EF072",
    factorLabel: "东北低硫柴油",
    factorName: 4, // 柴油
    factorValue: 0.6104,
    region: 8, // 黑龙江
    factorUnit: 3, // 统一为3
    source: "中国石油天然气集团有限公司《成品油碳排放因子测算报告》",
    dataYear: "2021",
    createTime: "2022-06-28 15:40:00"
  },
  {
    id: "73",
    factorId: "EF073",
    factorLabel: "西南地区车用柴油",
    factorName: 4, // 柴油
    factorValue: 0.6423,
    region: 24, // 贵州
    factorUnit: 3, // 统一为3
    source: "中国环境科学研究院《车用燃料全生命周期碳排放研究》",
    dataYear: "2022",
    createTime: "2023-04-12 09:15:00"
  },
  {
    id: "74",
    factorId: "EF074",
    factorLabel: "华南工业柴油",
    factorName: 4, // 柴油
    factorValue: 0.6517,
    region: 19, // 广东
    factorUnit: 3, // 统一为3
    source: "广东省节能监察中心《燃油设备碳排放计算指南》",
    dataYear: "2023",
    createTime: "2023-11-05 14:20:00"
  },
  {
    id: "75",
    factorId: "EF075",
    factorLabel: "西北高原柴油",
    factorName: 4, // 柴油
    factorValue: 0.6621,
    region: 29, // 宁夏
    factorUnit: 3, // 统一为3
    source: "中国石油化工股份有限公司《西北地区油品碳足迹测算标准》",
    dataYear: "2021",
    createTime: "2022-03-17 11:30:00"
  },
  {
    id: "76",
    factorId: "EF076",
    factorLabel: "华东船用柴油",
    factorName: 4, // 柴油
    factorValue: 0.6485,
    region: 10, // 江苏
    factorUnit: 3, // 统一为3
    source: "交通运输部水运科学研究院《船舶燃料碳排放测算指南》",
    dataYear: "2022",
    createTime: "2023-07-14 16:45:00"
  },
  {
    id: "77",
    factorId: "EF077",
    factorLabel: "京津冀地区国六柴油",
    factorName: 4, // 柴油
    factorValue: 0.5982,
    region: 1, // 北京
    factorUnit: 3, // 统一为3
    source: "北京市环境保护科学研究院《清洁燃油碳足迹评价报告》",
    dataYear: "2023",
    createTime: "2024-01-09 09:30:00"
  },
  {
    id: "78",
    factorId: "EF078",
    factorLabel: "云贵山区生物柴油混合燃料",
    factorName: 4, // 柴油
    factorValue: 0.5817,
    region: 25, // 云南
    factorUnit: 3, // 统一为3
    source: "中国科学院昆明植物研究所《生物柴油混合燃料碳减排效益研究》",
    dataYear: "2021",
    createTime: "2022-09-21 10:15:00"
  },
  {
    id: "79",
    factorId: "EF079",
    factorLabel: "山东炼油厂柴油产品",
    factorName: 4, // 柴油
    factorValue: 0.6278,
    region: 15, // 山东
    factorUnit: 3, // 统一为3
    source: "山东省能源研究院《省内炼化企业产品碳足迹评价》",
    dataYear: "2022",
    createTime: "2023-05-18 13:45:00"
  },
  {
    id: "80",
    factorId: "EF080",
    factorLabel: "长三角农机用柴油",
    factorName: 4, // 柴油
    factorValue: 0.6391,
    region: 11, // 浙江
    factorUnit: 3, // 统一为3
    source: "浙江省农业科学院《农业机械用油碳排放测算研究》",
    dataYear: "2023",
    createTime: "2023-12-05 15:20:00"
  },
  {
    id: "81",
    factorId: "EF081",
    factorLabel: "湖南发电用柴油",
    factorName: 4, // 柴油
    factorValue: 0.6437,
    region: 18, // 湖南
    factorUnit: 3, // 统一为3
    source: "湖南省电力研究院《应急发电设备温室气体排放核算指南》",
    dataYear: "2022",
    createTime: "2023-03-12 11:50:00"
  },
  {
    id: "82",
    factorId: "EF082",
    factorLabel: "内蒙古矿区专用柴油",
    factorName: 4, // 柴油
    factorValue: 0.6583,
    region: 5, // 内蒙古
    factorUnit: 3, // 统一为3
    source: "内蒙古煤炭科学研究院《矿区重型设备能源消耗与碳排放研究》",
    dataYear: "2021",
    createTime: "2022-11-15 14:30:00"
  },
  {
    id: "83",
    factorId: "EF083",
    factorLabel: "四川石化高品质柴油",
    factorName: 4, // 柴油
    factorValue: 0.6198,
    region: 23, // 四川
    factorUnit: 3, // 统一为3
    source: "中国石化四川石油分公司《高品质油品碳足迹认证报告》",
    dataYear: "2023",
    createTime: "2023-10-09 08:45:00"
  },
  {
    id: "84",
    factorId: "EF084",
    factorLabel: "新疆高原柴油",
    factorName: 4, // 柴油
    factorValue: 0.6574,
    region: 30, // 新疆
    factorUnit: 3, // 统一为3
    source: "中国石油新疆油田分公司《高原地区油品质量与碳排放研究》",
    dataYear: "2020",
    createTime: "2021-05-23 10:40:00"
  },
  {
    id: "85",
    factorId: "EF085",
    factorLabel: "全国平均柴油碳排放因子",
    factorName: 4, // 柴油
    factorValue: 0.6347,
    region: 32, // 全国
    factorUnit: 3, // 统一为3
    source: "国家发改委气候司《国家温室气体清单编制指南（2022年修订版）》",
    dataYear: "2022",
    createTime: "2022-12-20 16:10:00"
  },
  {
    id: "86",
    factorId: "EF086",
    factorLabel: "柴油",
    factorName: 4, //柴油
    factorValue: 3.0959,
    region: 31,
    factorUnit: 2,
    source: "《企业温室气体排放核算方法与报告指南发电设施(2022 年修订版)》",
    createTime: "2023-12-01 09:00:00"
  },
  {
    id: "87",
    factorId: "EF087",
    factorLabel: "电能",
    factorName: 1, //柴油
    factorValue: 0.581,
    region: 31,
    factorUnit: 1,
    source: "《企业温室气体排放核算方法与报告指南发电设施(2022 年修订版)》",
    createTime: "2023-12-01 09:00:00"
  },
  {
    id: "88",
    factorId: "EF088",
    factorLabel: "水能",
    factorName: 2, //柴油
    factorValue: 0.1891,
    region: 31,
    factorUnit: 2,
    source: "碳交易网(2019)-建筑材料",
    createTime: "2023-12-01 09:00:00"
  }
]);

// 供应商1
export const supplierList = ref<Partial<Supplier.ResSupplier>[]>([
  {
    id: "1",
    supplierLicense: "91330000MA2C3XTC23",
    supplierName: "泰山机械制造有限公司",
    contactName: "张明伟",
    contactEmail: "154324212@qq.com",
    contactPhone: "16575424562",
    createTime: "2023-12-01 09:00:00"
  },
  {
    id: "2",
    supplierLicense: "92320000MA1N3XBQX7",
    supplierName: "精工机电制造集团",
    contactName: "李晓红",
    contactEmail: "635123442@qq.com",
    contactPhone: "12136524526",
    createTime: "2023-12-02 10:30:00"
  },
  {
    id: "3",
    supplierLicense: "93110000MA2F3XEWJ2",
    supplierName: "鑫源机械装备制造厂",
    contactName: "王雪松",
    contactEmail: "12712342@qq.com",
    contactPhone: "15536586562",
    createTime: "2023-12-03 14:00:00"
  },
  {
    id: "4",
    supplierLicense: "94440000MA2P3XDM87",
    supplierName: "广博机械工业股份有限公司",
    contactName: "赵丽娜",
    contactEmail: "18812342@qq.com",
    contactPhone: "16759823596",
    createTime: "2023-12-04 15:45:00"
  },
  {
    id: "5",
    supplierLicense: "95500000MA2R3XJKL4",
    supplierName: "德宝机械制造集团",
    contactName: "孙建军",
    contactEmail: "15723412@qq.com",
    contactPhone: "15459823686",
    createTime: "2023-12-05 16:00:00"
  },
  {
    id: "6",
    supplierLicense: "94120000ODZGDNL4",
    supplierName: "灯具生产厂",
    contactName: "张明",
    contactEmail: "89227243@qq.com",
    contactPhone: "13478546211",
    createTime: "2023-12-05 16:01:00"
  },
  {
    id: "7",
    supplierLicense: "91440300MA2F3KL29X",
    supplierName: "恒宇塑料科技有限公司",
    contactName: "陈志远",
    contactEmail: "chenzhy@hengyuplastic.com",
    contactPhone: "13876543210",
    createTime: "2023-12-06 09:30:00"
  },
  {
    id: "8",
    supplierLicense: "92510100MA2G4LM37Y",
    supplierName: "东方橡胶工业集团",
    contactName: "王丽华",
    contactEmail: "wanglh@eastruber.com",
    contactPhone: "15928374651",
    createTime: "2023-12-06 10:15:00"
  },
  {
    id: "9",
    supplierLicense: "93310000MA2H5PM48Z",
    supplierName: "华夏化工新材料科技股份有限公司",
    contactName: "张建国",
    contactEmail: "zjg@huaxiachem.com",
    contactPhone: "18612345678",
    createTime: "2023-12-06 11:00:00"
  },
  {
    id: "10",
    supplierLicense: "91450100MA2H7LM39X",
    supplierName: "高新金属材料有限公司",
    contactName: "刘金山",
    contactEmail: "liujs@xinmetal.com",
    contactPhone: "13912345678",
    createTime: "2023-12-07 09:00:00"
  },
  {
    id: "11",
    supplierLicense: "91320500MA2J4TH71Z",
    supplierName: "绿创环保塑料科技有限公司",
    contactName: "吴绿华",
    contactEmail: "wulh@greenplastics.com",
    contactPhone: "13765432198",
    createTime: "2023-12-08 10:15:00"
  }
]);

// 产品列表
export const productList = ref<Partial<Product.ResProduct>[]>([
  {
    id: "1",
    productId: "P001",
    productName: "高压开关柜",
    description: "用于电力系统中高压设备的控制和保护。",
    createTime: "2023-12-01 10:00:00",
    treeId: "1", // 关联的产品结构树 ID
    owner: "admin"
  },
  {
    id: "4",
    productId: "P004",
    productName: "绝缘板",
    description: "隔离电流、防止漏电、提高设备安全性。",
    createTime: "2023-12-03 14:00:00",
    treeId: "2", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "5",
    productId: "P005",
    productName: "螺钉",
    description: "固定作用。",
    createTime: "2023-12-03 14:00:00",
    treeId: "3", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "6",
    productId: "P006",
    productName: "废钢",
    description: "主要原材料。",
    createTime: "2023-12-03 14:00:00",
    treeId: "4", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "7",
    productId: "P007",
    productName: "不锈钢板",
    description: "主要原材料。",
    createTime: "2023-12-03 14:00:00",
    treeId: "5", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "8",
    productId: "P008",
    productName: "变压器",
    description: "变压器是电力系统中重要的电气设备，用于电压的升降和电流的传输。",
    createTime: "2023-12-03 14:00:00",
    treeId: "6", // 关联的产品结构树 ID
    owner: "admin"
  },
  // 高压开关柜部分
  {
    id: "9",
    productId: "P009",
    productName: "灯罩垫块",
    description: "用来安装和固定灯具的组件，它通常用于灯具与其他表面之间的缓冲、密封以及隔离作用。",
    createTime: "2023-12-03 14:00:00",
    treeId: "7", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "10",
    productId: "P010",
    productName: "灯单盖板",
    description: "用于封闭灯具的外部，提供保护作用。",
    createTime: "2023-12-03 14:00:00",
    treeId: "8", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "12",
    productId: "P012",
    productName: "环氧树脂",
    description: "常用于电子产品和电气设备中的高性能塑料材料。",
    createTime: "2023-12-03 14:00:00",
    treeId: "6", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "13",
    productId: "P013",
    productName: "塑料",
    description: "一种常见的合成材料，因其可塑性和多功能性广泛应用于各类产品。",
    createTime: "2023-12-03 14:00:00",
    treeId: "6", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "14",
    productId: "P014",
    productName: "铝合金",
    description: "由铝和其他金属（如铜、镁、锰等）合金化而成的金属材料。",
    createTime: "2023-12-03 14:00:00",
    treeId: "6", // 关联的产品结构树 ID
    owner: "user"
  },
  //变压器部分
  {
    id: "15",
    productId: "P015",
    productName: "硅钢片",
    description: "一种特殊的电工钢，用于制造电磁设备中的核心部分。",
    createTime: "2023-12-03 14:00:00",
    treeId: "6", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "16",
    productId: "P016",
    productName: "绝缘件",
    description: "隔离不同电位部件，防止电流通过不应通电的部分。",
    createTime: "2023-12-03 14:00:00",
    treeId: "6", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "17",
    productId: "P017",
    productName: "电磁线",
    description: "传输电流和产生磁场。",
    createTime: "2023-12-03 14:00:00",
    treeId: "6", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "18",
    productId: "P018",
    productName: "变压器油",
    description: "起到绝缘和冷却的双重作用。",
    createTime: "2023-12-03 14:00:00",
    treeId: "6", // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "19",
    productId: "P019",
    productName: "高压开关柜_新",
    description: "用于电力系统中高压设备的控制和保护，使用替代外购材料。",
    createTime: "2023-12-05 14:00:00",
    treeId: "9", // 关联新的产品结构树 ID
    owner: "admin"
  },
  {
    id: "20",
    productId: "P020",
    productName: "硅胶",
    description: "用于隔绝静电。",
    createTime: "2023-12-05 14:00:00",
    treeId: "9", // 关联新的产品结构树 ID
    owner: "user"
  },
  {
    id: "21",
    productId: "P021",
    productName: "水泥",
    description: "用于固定和支撑。",
    createTime: "2023-12-05 14:00:00",
    treeId: "9", // 关联新的产品结构树 ID
    owner: "user"
  },
  {
    id: "22",
    productId: "P022",
    productName: "铜线",
    description: "用于导电。",
    createTime: "2023-12-05 14:00:00",
    treeId: "9", // 关联新的产品结构树 ID
    owner: "user"
  },
  {
    id: "23",
    productId: "P023",
    productName: "橡胶",
    description: "用于隔绝。",
    createTime: "2023-12-05 14:00:00",
    treeId: "9", // 关联新的产品结构树 ID
    owner: "user"
  },
  {
    id: "24",
    productId: "P024",
    productName: "硅胶",
    description: "源于新产地。",
    createTime: "2023-12-05 14:00:00",
    treeId: "9", // 关联新的产品结构树 ID
    owner: "user"
  },
  {
    id: "25",
    productId: "P025",
    productName: "聚碳酸酯",
    description: "用于隔绝。",
    createTime: "2023-12-05 14:00:00",
    treeId: "9", // 关联新的产品结构树 ID
    owner: "user"
  }
]);

/**产品结构树 */
export const productTree = ref<Partial<ProductTree.ResProduct_Tree>[]>([
  // 高压开关柜
  {
    id: "1",
    treeId: "T001",
    treeType: "2", // 产品结构树类型，1为零部件，2为产品
    node: ["-1", "17", "18", "19", "20", "21", "22", "32", "16", "31", "33"],
    edge: [
      { source: "-1", target: "17" },
      { source: "-1", target: "18" },
      { source: "-1", target: "19" },
      { source: "-1", target: "20" },
      { source: "-1", target: "21" },
      { source: "-1", target: "22" },
      { source: "17", target: "32" },
      { source: "17", target: "16" },
      { source: "21", target: "32" },
      { source: "21", target: "31" },
      { source: "22", target: "32" },
      { source: "19", target: "32" },
      { source: "19", target: "33" }
    ]
  },
  {
    id: "2",
    treeId: "T002",
    treeType: "1", // 产品结构树类型，1为零部件，2为产品
    node: ["-1", "16"],
    edge: [{ source: "-1", target: "16" }]
  },
  {
    id: "3",
    treeId: "T003",
    treeType: "1", // 产品结构树类型，1为零部件，2为产品
    node: ["-1", "6"],
    edge: [{ source: "-1", target: "6" }]
  },
  {
    id: "4",
    treeId: "T004",
    treeType: "1", // 产品结构树类型，1为零部件，2为产品
    node: ["-1"],
    edge: []
  },
  {
    id: "5",
    treeId: "T005",
    treeType: "1", // 产品结构树类型，1为零部件，2为产品
    node: ["-1", "6"],
    edge: [{ source: "-1", target: "6" }]
  },
  // 变压器
  {
    id: "6",
    treeId: "T006",
    treeType: "2", // 产品结构树类型，1为零部件，2为产品
    node: ["-1", "27", "28", "29", "30", "23", "24", "25", "26"],
    edge: [
      { source: "-1", target: "27" },
      { source: "-1", target: "28" },
      { source: "-1", target: "29" },
      { source: "-1", target: "30" },
      { source: "27", target: "23" },
      { source: "28", target: "25" },
      { source: "29", target: "24" },
      { source: "30", target: "26" },
      { source: "29", target: "25" }
    ]
  },
  // 灯罩垫块
  {
    id: "7",
    treeId: "T007",
    treeType: "1", // 产品结构树类型，1为零部件，2为产品
    node: ["-1", "34", "35"],
    edge: [
      { source: "-1", target: "34" },
      { source: "-1", target: "35" }
    ]
  },
  // 灯单盖板
  {
    id: "8",
    treeId: "T008",
    treeType: "1", // 产品结构树类型，1为零部件，2为产品
    node: ["-1", "32", "36"],
    edge: [
      { source: "-1", target: "36" },
      { source: "-1", target: "32" }
    ]
  },
  {
    id: "9",
    treeId: "T009",
    treeType: "2", // 产品结构树类型，2为产品
    node: ["-1", "17", "37", "19", "38", "21", "22", "40", "16", "39", "41"],
    edge: [
      { source: "-1", target: "17" },
      { source: "-1", target: "37" }, // 替换18→37
      { source: "-1", target: "19" },
      { source: "-1", target: "38" }, // 替换20→38
      { source: "-1", target: "21" },
      { source: "-1", target: "22" },
      { source: "17", target: "40" }, // 替换32→40
      { source: "17", target: "16" },
      { source: "21", target: "40" }, // 替换32→40
      { source: "21", target: "39" }, // 替换31→39
      { source: "22", target: "40" }, // 替换32→40
      { source: "19", target: "40" }, // 替换32→40
      { source: "19", target: "41" } // 替换33→41
    ]
  },
  // 主母线隔板
  {
    id: "10",
    treeId: "T010",
    treeType: "2", // 产品结构树类型，2为产品
    node: ["-1", "32", "16"],
    edge: [
      { source: "-1", target: "32" },
      { source: "-1", target: "16" } // 替换18→37
    ]
  },
  // 传动条加强条
  {
    id: "11",
    treeId: "T011",
    treeType: "2", // 产品结构树类型，2为产品
    node: ["-1", "32", "33"],
    edge: [
      { source: "-1", target: "32" },
      { source: "-1", target: "33" } // 替换18→37
    ]
  },
  // 五防底座
  {
    id: "12",
    treeId: "T012",
    treeType: "2", // 产品结构树类型，2为产品
    node: ["-1", "32", "31"],
    edge: [
      { source: "-1", target: "32" },
      { source: "-1", target: "31" } // 替换18→37
    ]
  },
  // 五防盖板
  {
    id: "13",
    treeId: "T013",
    treeType: "2", // 产品结构树类型，2为产品
    node: ["-1", "32"],
    edge: [{ source: "-1", target: "32" }]
  },
  // 铁芯
  {
    id: "14",
    treeId: "T014",
    treeType: "2", // 产品结构树类型，2为产品
    node: ["-1", "23"],
    edge: [{ source: "-1", target: "23" }]
  },
  // 线圈
  {
    id: "15",
    treeId: "T015",
    treeType: "2", // 产品结构树类型，2为产品
    node: ["-1", "25"],
    edge: [{ source: "-1", target: "25" }]
  },
  // 引线
  {
    id: "16",
    treeId: "T016",
    treeType: "2", // 产品结构树类型，2为产品
    node: ["-1", "24", "25"],
    edge: [
      { source: "-1", target: "24" },
      { source: "-1", target: "25" }
    ]
  },
  // 油箱
  {
    id: "17",
    treeId: "T017",
    treeType: "2", // 产品结构树类型，2为产品
    node: ["-1", "26"],
    edge: [{ source: "-1", target: "26" }]
  }
]);

export const projectList = ref<Partial<Project.ResProject>[]>([
  {
    id: "1",
    userName: "admin",
    productId: "1",
    projectStart: "2025-01-01",
    projectEnd: "2025-02-01",
    outPCFs: [
      { outMaterialID: "18", PCF: 0, status: 0 },
      { outMaterialID: "20", PCF: 0, status: 0 },
      { outMaterialID: "16", PCF: 0, status: 0 },
      { outMaterialID: "31", PCF: 0, status: 0 },
      { outMaterialID: "32", PCF: 0, status: 0 },
      { outMaterialID: "33", PCF: 0, status: 0 }
    ]
  },
  {
    id: "2",
    userName: "admin",
    productId: "8",
    projectStart: "2025-01-01",
    projectEnd: "2025-02-01",
    outPCFs: [
      { outMaterialID: "23", PCF: 0, status: 0 },
      { outMaterialID: "24", PCF: 0, status: 0 },
      { outMaterialID: "25", PCF: 0, status: 0 },
      { outMaterialID: "26", PCF: 0, status: 0 }
    ]
  },
  {
    id: "3",
    userName: "admin",
    productId: "19", // 新产品ID
    projectStart: "2025-01-01",
    projectEnd: "2025-02-01",
    outPCFs: [
      { outMaterialID: "37", PCF: 0, status: 0 }, // 替换18→37
      { outMaterialID: "38", PCF: 0, status: 0 }, // 替换20→38
      { outMaterialID: "16", PCF: 0, status: 0 }, // 保持不变，因为没有替代品
      { outMaterialID: "39", PCF: 0, status: 0 }, // 替换31→39
      { outMaterialID: "40", PCF: 0, status: 0 }, // 替换32→40
      { outMaterialID: "41", PCF: 0, status: 0 } // 替换33→41
    ]
  }
]);

export const materialList = ref<Partial<Material.ResMaterial>[]>([
  // {
  //   id: "1",
  //   materialId: "M001",
  //   materialName: "不锈钢板",
  //   materialType: 3, // 原材料
  //   sourceType: 1, // 自制
  //   processIds: ["5", "4", "3"], // 关联的工艺流程ID
  //   createTime: "2023-12-01 10:00:00",
  //   treeId: "3", // 关联的产品结构树 ID
  //   owner: "admin"
  // },
  {
    id: "2",
    materialId: "M002",
    materialName: "螺钉",
    supplierId: "1",
    materialType: 1, // 零件
    sourceType: 2, // 外购
    createTime: "2023-12-02 11:30:00",
    status: 1, // 关联的产品结构树 ID
    owner: "admin"
  },
  // {
  //   id: "3",
  //   materialId: "M003",
  //   materialName: "支架",
  //   supplierId: "2",
  //   materialType: 2, // 部件
  //   sourceType: 2, // 外购
  //   createTime: "2023-12-03 14:00:00",
  //   status: 2, // 关联的产品结构树 ID
  //   owner: "admin"
  // },
  // {
  //   id: "4",
  //   materialId: "M004",
  //   materialName: "铝合金框架",
  //   materialType: 2, // 部件
  //   sourceType: 1, // 自制
  //   processIds: ["1", "2"],
  //   createTime: "2023-12-04 15:00:00",
  //   treeId: "2", // 关联的产品结构树 ID
  //   owner: "admin"
  // },
  {
    id: "5",
    materialId: "M005",
    materialName: "绝缘板",
    supplierId: "3",
    materialType: 3, // 原材料
    sourceType: 2, // 外购
    createTime: "2023-12-05 16:00:00",
    status: 3, // 关联的产品结构树 ID
    treeId: "2", // 关联的产品结构树 ID
    owner: "admin"
  },
  {
    id: "6",
    materialId: "M006",
    materialName: "废钢",
    supplierId: "6",
    materialType: 3, // 部件
    sourceType: 2, // 外购
    createTime: "2023-12-03 18:00:00",
    status: 4, // 关联的产品结构树 ID
    owner: "admin"
  },
  // {
  //   id: "7",
  //   materialId: "M007",
  //   materialName: "灰白油漆",
  //   supplierId: "6",
  //   materialType: 3, // 部件
  //   sourceType: 2, // 外购
  //   createTime: "2023-12-07 18:00:00",
  //   status: 1, // 关联的产品结构树 ID
  //   owner: "admin"
  // },
  // {
  //   id: "11",
  //   materialId: "M011",
  //   materialName: "钣金",
  //   materialType: 3, // 原材料
  //   sourceType: 1, // 自制
  //   processIds: ["2", "5"],
  //   createTime: "2023-12-10 11:30:00",
  //   treeId: "7", // 关联的产品结构树 ID
  //   owner: "admin"
  // },
  {
    id: "12",
    materialId: "M012",
    materialName: "硅胶",
    supplierId: "4",
    materialType: 3, // 原材料
    sourceType: 2, // 外购
    createTime: "2023-12-11 13:00:00",
    status: 2, // 关联的产品结构树 ID
    owner: "admin"
  },
  {
    id: "13",
    materialId: "M013",
    materialName: "水泥",
    supplierId: "5",
    materialType: 3, // 原材料
    sourceType: 2, // 外购
    createTime: "2023-12-12 14:30:00",
    status: 3, // 关联的产品结构树 ID
    owner: "admin"
  },
  // {
  //   id: "14",
  //   materialId: "M014",
  //   materialName: "钛合金",
  //   materialType: 3, // 原材料
  //   sourceType: 1, // 自制
  //   processIds: ["4", "5", "6"],
  //   createTime: "2023-12-13 16:00:00",
  //   treeId: "8", // 关联的产品结构树 ID
  //   owner: "admin"
  // },
  {
    id: "15",
    materialId: "M015",
    materialName: "铜线",
    materialType: 2, // 部件
    sourceType: 2, // 外购
    supplierId: "6",
    createTime: "2023-12-14 17:30:00",
    status: 4, // 关联的产品结构树 ID
    owner: "admin"
  },
  {
    id: "16",
    materialId: "M016",
    materialName: "环氧树脂",
    materialType: 3, // 原材料
    sourceType: 2, // 外购
    supplierId: "4",
    createTime: "2023-12-14 17:30:00",
    status: 4, // 关联的产品结构树 ID
    owner: "user"
  },
  {
    id: "17",
    materialId: "ML017",
    materialName: "主母线隔板",
    materialType: 2,
    sourceType: 1,
    treeId: "10",
    processIds: ["3", "4"], // 激光、低压
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "18", //高压开关柜
    materialId: "ML018",
    materialName: "灯罩垫块",
    materialType: 2,
    sourceType: 2,
    supplierId: "6",
    processIds: ["3", "1", "2", "4"], // 激光、焊接、喷涂、低压
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "19", //高压开关柜
    materialId: "ML019",
    materialName: "传动条加强条",
    materialType: 2,
    sourceType: 1,
    treeId: "11",
    processIds: ["3", "1", "4"], // 激光、焊接、低压
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "20", //高压开关柜
    materialId: "ML020",
    materialName: "灯单盖板",
    materialType: 2,
    sourceType: 2,
    supplierId: "6",
    processIds: ["3", "5", "4"], // 激光、弯曲、低压
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "21", //高压开关柜
    materialId: "ML021",
    materialName: "五防底座",
    materialType: 2,
    sourceType: 1,
    treeId: "12",
    processIds: ["3", "5", "4"], // 激光、弯曲、低压
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "22", //高压开关柜
    materialId: "ML022",
    materialName: "五防盖板",
    materialType: 2,
    sourceType: 1,
    treeId: "13",
    processIds: ["3", "5", "4"], // 激光、弯曲、低压
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "23", //变压器
    materialId: "ML023",
    materialName: "硅钢片",
    materialType: 3,
    sourceType: 2,
    supplierId: "4",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "24", //变压器
    materialId: "ML024",
    materialName: "电磁线",
    materialType: 3,
    sourceType: 2,
    supplierId: "4",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "25", //变压器
    materialId: "ML025",
    materialName: "绝缘件",
    materialType: 3,
    sourceType: 2,
    supplierId: "4",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "26", //变压器
    materialId: "ML026",
    materialName: "变压器油",
    materialType: 3,
    sourceType: 2,
    supplierId: "4",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "27", //变压器
    materialId: "ML027",
    materialName: "铁芯",
    materialType: 2,
    sourceType: 1,
    treeId: "14",
    processIds: ["10"],
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "28", //变压器
    materialId: "ML028",
    materialName: "线圈",
    materialType: 2,
    sourceType: 1,
    treeId: "15",
    processIds: ["11"],
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "29", //变压器
    materialId: "ML029",
    materialName: "引线",
    materialType: 2,
    sourceType: 1,
    treeId: "16",
    processIds: ["12"],
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "30", //变压器
    materialId: "ML030",
    materialName: "油箱",
    materialType: 2,
    sourceType: 1,
    treeId: "17",
    processIds: ["9"],
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "31", //高压开关柜
    materialId: "ML031",
    materialName: "塑料",
    materialType: 3,
    sourceType: 2,
    supplierId: "7",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "32", //高压开关柜，不锈钢板
    materialId: "ML032",
    materialName: "不锈钢板",
    materialType: 3,
    sourceType: 2,
    supplierId: "1",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "33", //高压开关柜
    materialId: "ML033",
    materialName: "铝合金",
    materialType: 3,
    sourceType: 2,
    supplierId: "2",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "34", //灯罩垫块
    materialId: "ML034",
    materialName: "橡胶",
    materialType: 3,
    sourceType: 2,
    supplierId: "8",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "35", //灯罩垫块
    materialId: "ML035",
    materialName: "硅胶",
    materialType: 3,
    sourceType: 2,
    supplierId: "9",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "36", //灯单盖板
    materialId: "ML036",
    materialName: "聚碳酸酯",
    materialType: 3,
    sourceType: 2,
    supplierId: "9",
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "37",
    materialId: "ML018-2",
    materialName: "灯罩垫块",
    materialType: 2,
    sourceType: 2, // 外购
    supplierId: "3", // 不同的供应商
    processIds: ["3", "1", "2", "4"],
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "38",
    materialId: "ML020-2",
    materialName: "灯单盖板",
    materialType: 2,
    sourceType: 2, // 外购
    supplierId: "5", // 不同的供应商
    processIds: ["3", "5", "4"],
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "39",
    materialId: "ML031-2",
    materialName: "塑料",
    materialType: 3,
    sourceType: 2, // 外购
    supplierId: "11", // 添加供应商
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "40",
    materialId: "ML032-2",
    materialName: "不锈钢板",
    materialType: 3,
    sourceType: 2, // 外购
    supplierId: "4", // 添加供应商
    createTime: "2023-12-01 10:00:00"
  },
  {
    id: "41",
    materialId: "ML033-2",
    materialName: "铝合金",
    materialType: 3,
    sourceType: 2, // 外购
    supplierId: "10", // 添加供应商
    createTime: "2023-12-01 10:00:00"
  }
]);
export const MPpairList = ref<Partial<MPpair.ResMPpair>[]>([
  // 绝缘板
  { id: "1", materialId: "5", productId: "4" },
  // 螺钉
  { id: "2", materialId: "2", productId: "5" },
  // 废钢
  { id: "3", materialId: "6", productId: "6" },
  // 不锈钢板
  { id: "5", materialId: "32", productId: "7" },
  // 灯罩垫块
  { id: "6", materialId: "18", productId: "9" },
  // 灯单盖板
  { id: "7", materialId: "20", productId: "10" },
  // 环氧树脂
  { id: "8", materialId: "16", productId: "12" },
  // 塑料
  { id: "9", materialId: "31", productId: "13" },
  // 铝合金
  { id: "10", materialId: "33", productId: "14" },
  // 硅钢片
  { id: "11", materialId: "23", productId: "15" },
  // 电磁线
  { id: "12", materialId: "24", productId: "17" },
  // 绝缘件
  { id: "13", materialId: "25", productId: "16" },
  // 变压器油
  { id: "14", materialId: "26", productId: "18" },
  // 灯罩垫块(替代版)
  { id: "15", materialId: "37", productId: "9" },
  // 灯单盖板(替代版)
  { id: "16", materialId: "38", productId: "10" },
  // 塑料(替代版)
  { id: "17", materialId: "39", productId: "13" },
  // 不锈钢板(替代版)
  { id: "18", materialId: "40", productId: "7" },
  // 铝合金(替代版)
  { id: "19", materialId: "41", productId: "14" },
  // 硅胶
  { id: "20", materialId: "12", productId: "20" },
  // 水泥
  { id: "21", materialId: "13", productId: "21" },
  // 铜线
  { id: "22", materialId: "15", productId: "22" },
  // 橡胶
  { id: "23", materialId: "34", productId: "23" },
  // 硅胶（替代版）
  { id: "24", materialId: "35", productId: "24" },
  // 聚碳酸酯
  { id: "25", materialId: "36", productId: "25" }
]);

export const PCFrequestList = ref<Partial<PCFrequest.ResPCFrequest>[]>([
  // { id: "2", startUser: "admin", endUser: "user", projectId: "1", MPpairId: "2", requestTime: "2022-01-01" }
]);

// 分配数据列表
export const allocationList = ref<Partial<Allocation.AllocationList>[]>([
  {
    projectId: "1",
    totalEnergy: {
      waterUsage: "1000",
      electricityUsage: "5000",
      gasUsage: "2000",
      oilUsage: "500"
    },
    organizationLayer: {
      method: "预估能耗",
      parameters: {
        productionEnergy: "4000",
        officeEnergy: "1000",
        expertPercentage: 60
      }
    },
    productionLineLayer: {
      method: "产品产量",
      parameters: {
        productQuantity: "100",
        totalProductQuantity: "500",
        expertPercentage: 80
      }
    },
    productLayer: {
      method: "产品产量",
      parameters: {
        productQuantity: "100",
        totalProductQuantity: "500",
        productProcessingTime: "10", // 不使用生产时长时为 null
        totalProcessingTime: "100"
      }
    },
    equipmentLayer: {
      method: "预估能耗",
      equipmentList: [
        {
          equipmentName: "激光切割机",
          estimatedEnergy: "1000",
          totalEstimatedEnergy: "3000"
        },
        {
          equipmentName: "焊接机",
          estimatedEnergy: "1000",
          totalEstimatedEnergy: "3000"
        },
        {
          equipmentName: "数控机床",
          estimatedEnergy: "1000",
          totalEstimatedEnergy: "3000"
        },
        {
          equipmentName: "涂装设备",
          estimatedEnergy: "1000",
          totalEstimatedEnergy: "3000"
        },
        {
          equipmentName: "冲孔机",
          estimatedEnergy: "1000",
          totalEstimatedEnergy: "3000"
        }
      ]
    }
  },
  {
    projectId: "2",
    totalEnergy: {
      waterUsage: "800",
      electricityUsage: "4000",
      gasUsage: "1500",
      oilUsage: "300"
    },
    organizationLayer: {
      method: "专家意见",
      parameters: {
        productionEnergy: null,
        officeEnergy: null,
        expertPercentage: 50
      }
    },
    productionLineLayer: {
      method: "专家意见",
      parameters: {
        productQuantity: null,
        totalProductQuantity: null,
        expertPercentage: 45
      }
    },
    productLayer: {
      method: "产品生产时长",
      parameters: {
        productQuantity: null,
        totalProductQuantity: null,
        productProcessingTime: "15", // 产品加工时长
        totalProcessingTime: "80" // 产品总加工时长
      }
    },
    equipmentLayer: {
      method: "预估能耗",
      equipmentList: [
        {
          equipmentName: "焊接机",
          estimatedEnergy: "500",
          totalEstimatedEnergy: "2000"
        }
      ]
    }
  }
]);

// 能耗分配响应
export const energyAllocationResponse = ref<EnergyAllocation.EnergyAllocationResponse[]>([
  {
    processName: "激光", // 工艺名称
    allocationInput: [
      {
        inputType: 2, //输入能耗类型
        inputConsumption: "12333", // 能耗值
        inputUnit: 5 // 单位
      },
      {
        inputType: 3,
        inputConsumption: "123", // 能耗值
        inputUnit: 4 // 单位
      }
    ]
  }
]);

//产品工艺流程节点
export const processNodeList = ref<ProcessNode.ProcessNode[]>([
  {
    productId: "1",
    productName: "高压开关柜",
    nodes: [
      {
        nodeId: "1",
        process: {
          id: "3",
          processId: "GX003",
          processName: "激光",
          description: "此工序利用高精度激光切割机进行金属材料的精密切割，确保切割边缘平滑且无毛刺，适用于复杂形状和精细加工。",
          createTime: "2023-12-03 14:00:00"
        },
        materials: [
          {
            id: "17",
            materialId: "ML017",
            materialName: "主母线隔板",
            materialType: 2,
            sourceType: 1,
            supplierId: "1",
            processIds: ["3", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "19",
            materialId: "ML019",
            materialName: "传动条加强条",
            materialType: 2,
            sourceType: 1,
            supplierId: "3",
            processIds: ["3", "1", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "21",
            materialId: "ML021",
            materialName: "五防底座",
            materialType: 2,
            sourceType: 1,
            supplierId: "1",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "22",
            materialId: "ML022",
            materialName: "五防盖板",
            materialType: 2,
            sourceType: 1,
            supplierId: "2",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "2",
        process: {
          id: "5",
          processId: "GX005",
          processName: "弯曲",
          description:
            "金属弯曲成型工序通过液压机和模具对金属材料进行弯曲，确保产品达到所需的角度和尺寸，适用于钢板、铝合金等金属材料的成型。",
          createTime: "2023-12-05 16:00:00"
        },
        materials: [
          {
            id: "20",
            materialId: "",
            materialName: "灯单盖板",
            materialType: 2,
            sourceType: 1,
            supplierId: "4",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "3",
        process: {
          id: "1",
          processId: "GX001",
          processName: "焊接",
          description: "该工序使用自动化焊接设备进行金属部件的焊接，保证焊接接头的高强度与稳定性，适用于高要求的结构件。",
          createTime: "2023-12-01 10:00:00"
        },
        materials: [
          {
            id: "19",
            materialId: "ML019",
            materialName: "传动条加强条",
            materialType: 2,
            sourceType: 1,
            supplierId: "3",
            processIds: ["3", "1", "4"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "4",
        process: {
          id: "4",
          processId: "GX004",
          processName: "低压",
          description:
            "低压加工工序用于控制设备内的电流和电压，确保设备在低压环境下稳定运行，避免过载现象，常用于电气部件的安全测试。",
          createTime: "2023-12-04 09:00:00"
        },
        materials: [
          {
            id: "17",
            materialId: "ML017",
            materialName: "主母线隔板",
            materialType: 2,
            sourceType: 1,
            supplierId: "1",
            processIds: ["3", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "19",
            materialId: "ML019",
            materialName: "传动条加强条",
            materialType: 2,
            sourceType: 1,
            supplierId: "3",
            processIds: ["3", "1", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "21",
            materialId: "ML021",
            materialName: "五防底座",
            materialType: 2,
            sourceType: 1,
            supplierId: "1",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "22",
            materialId: "ML022",
            materialName: "五防盖板",
            materialType: 2,
            sourceType: 1,
            supplierId: "2",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "5",
        process: {
          id: "8",
          processId: "GX008",
          processName: "装配",
          description:
            "在装配工序中，各种机械部件按图纸要求进行组装，确保零部件的精准配合和功能正常，使用自动化装配线以提高生产效率。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      }
    ]
  },
  {
    productId: "8",
    productName: "变压器",
    nodes: [
      {
        nodeId: "1",
        order: 1,
        process: {
          id: "9",
          processId: "GX009",
          processName: "油箱制作",
          description:
            "油箱制作工序包括金属板材的冲压和焊接，通过精确的工艺确保油箱的密封性和结构强度，广泛应用于汽车、航空等行业。",
          createTime: "2023-12-09 11:00:00"
        },
        materials: [
          {
            id: "30",
            materialId: "ML030",
            materialName: "油箱",
            materialType: 2,
            sourceType: 1,
            processIds: ["9"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "2",
        order: 2,
        process: {
          id: "10",
          processId: "GX010",
          processName: "铁芯制作",
          description:
            "铁芯制作工序通过冲压和切割工艺将金属材料加工成所需形状，确保铁芯的磁性性能，广泛应用于电机、变压器等设备。",
          createTime: "2023-12-10 11:00:00"
        },
        materials: [
          {
            id: "27",
            materialId: "ML027",
            materialName: "铁芯",
            materialType: 2,
            sourceType: 1,
            processIds: ["10"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "3",
        order: 3,
        process: {
          id: "11",
          processId: "GX011",
          processName: "线圈制作",
          description: "线圈制作工序包括绕制和绝缘处理，确保线圈的电气性能和机械强度，广泛应用于变压器、电机等行业。",
          createTime: "2023-12-11 11:00:00"
        },
        materials: [
          {
            id: "28",
            materialId: "ML028",
            materialName: "线圈",
            materialType: 2,
            sourceType: 1,
            processIds: ["11"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "4",
        order: 4,
        process: {
          id: "12",
          processId: "GX012",
          processName: "引线装配",
          description: "引线制作工序通过精密的焊接技术将导线连接到元件上，确保电流传导的稳定性和安全性，常用于电子元件的组装中。",
          createTime: "2023-12-12 11:00:00"
        },
        materials: [
          {
            id: "29",
            materialId: "ML029",
            materialName: "绝缘件",
            materialType: 2,
            sourceType: 1,
            processIds: ["12"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "5",
        order: 5,
        process: {
          id: "13",
          processId: "GX013",
          processName: "器身装配",
          description: "器身装配工序通过精密的机械装配技术，将各个部件组装成完整的器身，确保结构的稳定性和功能的正常运作。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      },
      {
        nodeId: "6",
        order: 6,
        process: {
          id: "14",
          processId: "GX014",
          processName: "气箱干燥",
          description: "气箱干燥工序通过热风循环和抽真空技术，去除气箱内的水分，确保气箱的密封性和使用寿命。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      },
      {
        nodeId: "7",
        order: 7,
        process: {
          id: "15",
          processId: "GX015",
          processName: "器身压服",
          description: "器身压服工序通过高压设备对器身进行成型，确保器身的强度和形状符合设计要求。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      },
      {
        nodeId: "8",
        order: 8,
        process: {
          id: "16",
          processId: "GX016",
          processName: "总装配",
          description: "总装配工序将所有部件进行最终组装，确保各个部件的配合精度和整体功能的正常运作。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      },
      {
        nodeId: "9",
        order: 9,
        process: {
          id: "17",
          processId: "GX017",
          processName: "真空注油",
          description: "真空注油工序通过真空技术将润滑油注入设备内部，确保设备的正常运转和延长使用寿命。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      },
      {
        nodeId: "10",
        order: 10,
        process: {
          id: "18",
          processId: "GX018",
          processName: "出厂试验",
          description: "出厂试验工序对组装完成的设备进行全面测试，确保其性能和安全性符合出厂标准。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      },
      {
        nodeId: "11",
        order: 11,
        process: {
          id: "19",
          processId: "GX019",
          processName: "入库",
          description: "入库工序负责产品的最终检验、包装和入库管理，确保产品质量符合标准并妥善存储。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      },
      {
        nodeId: "12",
        order: 12,
        process: {
          id: "20",
          processId: "GX020",
          processName: "生产配套",
          description: "生产配套工序为设备生产提供必要的配件和材料，确保生产线的顺利运作。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      },
      {
        nodeId: "13",
        order: 13,
        process: {
          id: "21",
          processId: "GX021",
          processName: "生产公共能耗",
          description: "生产公共能耗工序监测和管理生产过程中所需的公共能源，确保生产效率和资源的合理利用。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      }
    ]
  },
  {
    productId: "19", // 新产品ID
    productName: "高压开关柜_新",
    nodes: [
      {
        nodeId: "1",
        process: {
          id: "3",
          processId: "GX003",
          processName: "激光",
          description: "此工序利用高精度激光切割机进行金属材料的精密切割，确保切割边缘平滑且无毛刺，适用于复杂形状和精细加工。",
          createTime: "2023-12-03 14:00:00"
        },
        materials: [
          {
            id: "17",
            materialId: "ML017",
            materialName: "主母线隔板",
            materialType: 2,
            sourceType: 1,
            supplierId: "1",
            processIds: ["3", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "19",
            materialId: "ML019",
            materialName: "传动条加强条",
            materialType: 2,
            sourceType: 1,
            supplierId: "3",
            processIds: ["3", "1", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "21",
            materialId: "ML021",
            materialName: "五防底座",
            materialType: 2,
            sourceType: 1,
            supplierId: "1",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "22",
            materialId: "ML022",
            materialName: "五防盖板",
            materialType: 2,
            sourceType: 1,
            supplierId: "2",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "2",
        process: {
          id: "5",
          processId: "GX005",
          processName: "弯曲",
          description:
            "金属弯曲成型工序通过液压机和模具对金属材料进行弯曲，确保产品达到所需的角度和尺寸，适用于钢板、铝合金等金属材料的成型。",
          createTime: "2023-12-05 16:00:00"
        },
        materials: [
          {
            id: "38", // 使用新的替代材料ID
            materialId: "ML020-2",
            materialName: "灯单盖板",
            materialType: 2,
            sourceType: 2,
            supplierId: "5",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "3",
        process: {
          id: "1",
          processId: "GX001",
          processName: "焊接",
          description: "该工序使用自动化焊接设备进行金属部件的焊接，保证焊接接头的高强度与稳定性，适用于高要求的结构件。",
          createTime: "2023-12-01 10:00:00"
        },
        materials: [
          {
            id: "19",
            materialId: "ML019",
            materialName: "传动条加强条",
            materialType: 2,
            sourceType: 1,
            supplierId: "3",
            processIds: ["3", "1", "4"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "4",
        process: {
          id: "4",
          processId: "GX004",
          processName: "低压",
          description:
            "低压加工工序用于控制设备内的电流和电压，确保设备在低压环境下稳定运行，避免过载现象，常用于电气部件的安全测试。",
          createTime: "2023-12-04 09:00:00"
        },
        materials: [
          {
            id: "17",
            materialId: "ML017",
            materialName: "主母线隔板",
            materialType: 2,
            sourceType: 1,
            supplierId: "1",
            processIds: ["3", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "19",
            materialId: "ML019",
            materialName: "传动条加强条",
            materialType: 2,
            sourceType: 1,
            supplierId: "3",
            processIds: ["3", "1", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "21",
            materialId: "ML021",
            materialName: "五防底座",
            materialType: 2,
            sourceType: 1,
            supplierId: "1",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          },
          {
            id: "22",
            materialId: "ML022",
            materialName: "五防盖板",
            materialType: 2,
            sourceType: 1,
            supplierId: "2",
            processIds: ["3", "5", "4"],
            createTime: "2023-12-01 10:00:00"
          }
        ]
      },
      {
        nodeId: "5",
        process: {
          id: "8",
          processId: "GX008",
          processName: "装配",
          description:
            "在装配工序中，各种机械部件按图纸要求进行组装，确保零部件的精准配合和功能正常，使用自动化装配线以提高生产效率。",
          createTime: "2023-12-08 11:00:00"
        },
        materials: []
      }
    ]
  }
]);

// 清单分析工艺流程图数据
export const flowChartList = ref<Partial<FlowChart.ResFlowChart>[]>([{}]);

//目标与范围确定数据
export const purposeScopeList = ref<Partial<PurposeScope.PurposeScopeData>[]>([
  {
    projectId: "1",
    projectName: "高压开关柜碳足迹核算项目",
    purpose:
      "找出高压开关柜生产和使用过程中碳排放较高的环节（如金属材料生产、电力消耗、SF₆ 绝缘气体泄漏等），为企业优化生产提供数据支持。",
    productId: "PD001",
    id: "1", //查找产品的标识
    productName: "高压开关柜",
    systemBoundary: "",
    functionalUnit: "",
    dataCollectionTime: [],
    accountingBasis: "ISO 14067 : 2018",
    accountingMethod: "碳排因子法",
    dataPrinciple:
      "根据评价目的，可对数据进行适当取舍，但需对输人输出选择准则及其所依据的假定作清晰的表述，并在最终报告中评价其潜在影响。",
    dataQuality:
      "为满足产品生命周期评价的目的和范围，应对数据质量要求做出规定，包括：时间跨度、地域范围、技术覆盖面、精度、完整性、代表性、一致性、可再现性、可追溯性、不确定性。"
  },
  {
    projectId: "2",
    projectName: "变压器碳足迹核算项目",
    purpose:
      "找出变压器生产和使用过程中碳排放较高的环节（如金属材料生产、电力消耗、SF₆ 绝缘气体泄漏等），为企业优化生产提供数据支持。",
    productId: "PD008",
    id: "8", //查找产品的标识
    productName: "变压器",
    systemBoundary: "",
    functionalUnit: "",
    dataCollectionTime: [],
    accountingBasis: "ISO 14067 : 2018",
    accountingMethod: "碳排因子法",
    dataPrinciple:
      "根据评价目的，可对数据进行适当取舍，但需对输人输出选择准则及其所依据的假定作清晰的表述，并在最终报告中评价其潜在影响。",
    dataQuality:
      "为满足产品生命周期评价的目的和范围，应对数据质量要求做出规定，包括：时间跨度、地域范围、技术覆盖面、精度、完整性、代表性、一致性、可再现性、可追溯性、不确定性。"
  },
  {
    projectId: "3",
    projectName: "高压开关柜_新碳足迹核算项目",
    purpose: "找出高压开关柜_新生产和使用过程中碳排放较高的环节（使用替代外购材料），为企业优化生产提供数据支持。",
    productId: "P019",
    id: "19", // 新产品ID
    productName: "高压开关柜_新",
    systemBoundary: "",
    functionalUnit: "",
    dataCollectionTime: [],
    accountingBasis: "ISO 14067 : 2018",
    accountingMethod: "碳排因子法",
    dataPrinciple:
      "根据评价目的，可对数据进行适当取舍，但需对输人输出选择准则及其所依据的假定作清晰的表述，并在最终报告中评价其潜在影响。",
    dataQuality:
      "为满足产品生命周期评价的目的和范围，应对数据质量要求做出规定，包括：时间跨度、地域范围、技术覆盖面、精度、完整性、代表性、一致性、可再现性、可追溯性、不确定性。"
  }
]);

// 工艺碳排放清单数据
export const processCarbonEmissions = ref<Partial<FlowChart.ResFlowChart>[]>([{}]);

// 自制碳排放源分析数据
export const selfMadeEmissionList = ref<Partial<SelfMadeEmission.ResSelfMadeEmission>[]>([]);

/**用于存储产品装配过程的数据 */
export const assemblyProcessList = ref<Partial<AssemblyProcess.ResAssemblyProcess>[]>([
  {
    id: "1",
    productId: "1",
    processIds: ["22", "23"]
  },
  {
    id: "2",
    productId: "19", // 新产品ID
    processIds: ["22", "23"]
  },
  {
    id: "2",
    productId: "8", // 新产品ID
    processIds: ["13", "14", "15", "16", "17", "18", "19", "20", "21"]
  }
]);
